package com.it.dao;


import com.it.domain.Banner;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BannerMapper {

    Integer AddBanner(Banner banner);

    Integer SetBannerType(Banner banner);

    List<Banner> SelectBanner(Banner banner);

    List<Banner> getAllBanner();

    List<Banner> getBannerPosition(Integer bannerType);

    @Delete("delete from banner where id = #{id}")
    Integer DeleteBanner(Integer id);
}
